function turnPageTo(value, key)
{
	if (!key)
		key = "page";
	var hash = "";
	var oldHref = window.location.href.split("#");
	if (oldHref.length > 1 && "" != oldHref[1])
	    hash = "#" + oldHref[1];
	var hrefandsearch = oldHref[0].split("?");
	if (hrefandsearch.length == 1)
	{
		window.location = oldHref[0] + "?" + key + "=" + value + hash;
		return ;
	}
	var keys_values = hrefandsearch[1].split("&");
	var bhaskey = false;
	for (var i = 0; i < keys_values.length; i++)
	{
		var key_value = keys_values[i].split("=");
		if (key_value[0] == key)
		{
			bhaskey = true;
			keys_values[i] = key + "=" + value;
			break;
		}
	}
	if (bhaskey)
		keys_values = keys_values.join("&");
	else
		keys_values = hrefandsearch[1] + "&" + key + "=" + value;
	window.location = hrefandsearch[0] + "?" + keys_values + hash;
}